package cn.yza.设计模式.策略模式;

/**
 * @author Honglixi
 * @create 2022-01-09 21:32
 */
public class AdvancedMemberStrategy implements MemberStrategy{
    @Override
    public double calcPrice(double booksPrice) {

        System.out.println("对于高级会员的折扣为20%");
        return booksPrice * 0.8;
    }
}
